package com.example.demo.controller;

import com.example.demo.pojo.Student;
import com.example.demo.service.StudentService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/student")
@CrossOrigin
public class StudentController {
    @Resource
    private StudentService ser;
    //模糊查询地址列表
    @PostMapping("/list")
    public List<Student> list(@RequestBody Student student){
        return  ser.list(student);
    }


}
